from flask import Blueprint, render_template
from auth import login_required, permission_required

main_bp = Blueprint('main', __name__)

@main_bp.route('/')
@login_required
@permission_required('view_dashboard')
def index():
    return render_template('main/index.html')

@main_bp.route('/dashboard')
@login_required
@permission_required('view_dashboard')
def dashboard():
    return render_template('main/dashboard.html') 